home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / P_ROBO31.ZIP / EDITOR.HLP < prev    next >
Text File  |  1993-02-28  |  11KB  |  268 lines

  1.  
  2.   This file has basic information about how to use the editor, plus
  3.   some definitions of unique P-Robots PASCAL language usage.
  4.  
  5.   First, here are the editor commands:
  6.  
  7.   ══ Editor Commands (WordStar plus Cursor Keys ═══════════════════════════
  8.  
  9.   Quit editing                 <ESC>
  10.  
  11.   Cursor up                    <Up>           <^E>
  12.   Cursor down                  <Down>         <^X>
  13.   Cursor left                  <Left>         <^S>
  14.   Cursor right                 <Right>        <^D>
  15.   Cursor to start of line      <Home>         <^Q><^S>
  16.   Cursor to end of line        <End>          <^Q><^D>
  17.   Cursor left one word         <^Left>        <^A>
  18.   Cursor right one word        <^Right>       <^F>
  19.   ─────────────────────────────────────────────────────────────────────────
  20.   Scroll up one page           <PgUp>         <^R>
  21.   Scroll down one page         <PgDn>         <^C>
  22.   Scroll window up             <^W>
  23.   Scroll window down           <^Z>
  24.   Top of file                  <^PgUp>        <^Q><^R>
  25.   End of file                  <^PgDn>        <^Q><^C>
  26.   Top of screen                <^Home>        <^Q><^E>
  27.   Bottom of screen             <^End>         <^Q><^X>
  28.   Cursor to prev position      <^Q><^P>
  29.   Jump to line                 <^J><^L>
  30.   ─────────────────────────────────────────────────────────────────────────
  31.   New line                     <Enter>
  32.   Insert line                  <^N>
  33.   Toggle insert mode           <Ins>          <^V>
  34.   Insert control character     <^P>
  35.   Insert tab                   <Tab>
  36.   Restore line                 <^Q><^L>
  37.   ─────────────────────────────────────────────────────────────────────────
  38.   Delete char at cursor        <Del>          <^G>
  39.   Delete previous char         <BkSp>         <^BkSp>
  40.   Delete word                  <^T>
  41.   Delete line                  <^Y>
  42.   Delete to end of line        <^Q><^Y>
  43.   ─────────────────────────────────────────────────────────────────────────
  44.   Mouse select                 <ClkLeft>
  45.   Request help                 <F1>           <ClkBoth>
  46.   ─────────────────────────────────────────────────────────────────────────
  47.   Save file                    <F2>           <^K><^S>
  48.   Read new file                <F3>
  49.   Save file under new name     <^K><^N>
  50.   Save file and exit           <^K><^X>
  51.   Abandon file                 <^K><^Q>
  52.   Save and switch files        <^K><^D>
  53.   ─────────────────────────────────────────────────────────────────────────
  54.   Search                       <^Q><^F>
  55.   Search and replace           <^Q><^A>
  56.   Search again                 <^L>
  57.   ─────────────────────────────────────────────────────────────────────────
  58.   Mark start of block          <F7>           <^K><^B>
  59.   Mark end of block            <F8>           <^K><^K>
  60.   Mark current word as block   <^K><^T>
  61.   Toggle block display         <^K><^H>
  62.   Jump to block begin          <^Q><^B>
  63.   Jump to block end            <^Q><^K>
  64.   Copy block                   <^K><^C>
  65.   Delete block                 <^K><^Y>
  66.   Move block                   <^K><^V>
  67.   ─────────────────────────────────────────────────────────────────────────
  68.   Read block                   <^K><^R>
  69.   Write block                  <^K><^W>
  70.   Print block                  <^K><^P>
  71.   Change block to upper case   <^O><^U>
  72.   Change block to lower case   <^O><^V>
  73.   Toggle case of block         <^O><^O>
  74.   Indent marked block          <^K><^I>
  75.   Unindent marked block        <^K><^U>
  76.   Set level for block indent   <^O><^B>
  77.   ─────────────────────────────────────────────────────────────────────────
  78.   Set marker 0                 <^K><0>
  79.   Set marker 1                 <^K><1>
  80.   Set marker 2                 <^K><2>
  81.   Set marker 3                 <^K><3>
  82.   Jump to marker 0             <^Q><0>
  83.   Jump to marker 1             <^Q><1>
  84.   Jump to marker 2             <^Q><2>
  85.   Jump to marker 3             <^Q><3>
  86.   Toggle marker display        <^K><^M>
  87.   ─────────────────────────────────────────────────────────────────────────
  88.   Reformat paragraph           <^B>
  89.   Global reformat              <^K><^G>
  90.   Center line                  <^O><^C>
  91.   ─────────────────────────────────────────────────────────────────────────
  92.   Toggle smart/fixed tabs      <^O><^F>
  93.   Set size of fixed tabs       <^O><^T>
  94.   Set right margin             <^O><^R>
  95.   Toggle indent mode           <^O><^I>
  96.   Toggle word wrap             <^O><^W>
  97.  
  98.  
  99.   ══ Unique P-ROBOTS Procedures and Functions ══════════════════════════════
  100.  
  101.   Alive -- returns a TRUE or FALSE depending upon whether your robot is
  102.            alive or not.
  103.  
  104.   Ally -- a pre-defined P-ROBOTS "constant" which is one of the values
  105.           returned by the "ObjectScanned" function.
  106.  
  107.   AllyAlive -- returns TRUE or FALSE depending upon whether your Ally is
  108.                Alive or not.
  109.  
  110.   AllyDamage -- returns your Ally's current Damage level.
  111.  
  112.   AllyDead -- returns TRUE or FALSE depending upon whether your Ally is Dead
  113.               or not.
  114.  
  115.   AllyFuel -- returns your Ally's current Fuel level.
  116.  
  117.   AllyHeading -- returns your Ally's current Heading.
  118.  
  119.   AllyLoc_X -- returns the current X coordinate of your Ally.
  120.  
  121.   AllyLoc_Y -- returns the current Y coordinate of your Ally.
  122.  
  123.   AllyMeters -- returns your Ally's current Meters.
  124.  
  125.   AllyShieldRaised -- returns TRUE or FALSE depending upon whether your
  126.                       Ally's shield is raised or not.
  127.  
  128.   AllySpeed -- returns your Ally's current Speed.
  129.  
  130.   Angle_To(X, Y) -- returns angle in degrees form your robot's current
  131.                     position to the point X, Y on the battlefield.
  132.  
  133.   Armor -- returns the type of armor with which your robot is equipped.  The
  134.            result returned can have the "constant" values: Light, Medium or
  135.            Heavy.
  136.  
  137.   BombsLeft -- returns the number of bombs that your robot currently has.
  138.                If your robot do not select the electronic bombs option, the
  139.                returned value will be zero (obviously).
  140.  
  141.   Compact -- a pre-defined P-ROBOTS "constant" which is one of the values
  142.              returned by the "Engine" function.
  143.  
  144.   Cannon(degree, range); -- fires a missile at an angle of "degree" and for
  145.                             a distance of "range".
  146.  
  147.   Damage -- returns the value of your robot's current damage level.
  148.  
  149.   Dead -- returns a TRUE or FALSE depending upon whether your robot is dead
  150.           or not.
  151.  
  152.   Detonate; -- causes the bomb your robot had previous "dropped" or placed
  153.                (using the PlaceBomb procedure) to explode.
  154.  
  155.   Distance(X1, Y1, X2, Y2) -- returns the distance in meters from the point
  156.                               X1, Y1 on the battle field to the point X2,
  157.                               Y2.
  158.  
  159.   Drive(degree, speed); -- causes your robot to move in the direction given
  160.                            by "degree" at a specified "speed".
  161.  
  162.   Economy -- a pre-defined P-ROBOTS "constant" which is one of the values
  163.              returned by the "Engine" function.
  164.  
  165.   Enemy -- a pre-defined P-ROBOTS "constant" which is one of the values
  166.            returned by the "ObjectScanned" function.
  167.  
  168.   Engine -- returns the type of engine that your robot is equipped with.
  169.             The result returned can have the "constant" values: Economy,
  170.             Compact, Standard, Large, or ExtraLarge.
  171.  
  172.   ExtraLarge -- a pre-defined P-ROBOTS "constant" which is one of the values
  173.                 returned by the "Engine" function.
  174.  
  175.   Fuel -- returns the current value of your robot's fuel level in "jiggers".
  176.  
  177.   HaveCloak -- returns TRUE or FALSE depending upon whether your robot is
  178.                equipped with a cloak.
  179.  
  180.   HaveRepairKit -- returns TRUE or FALSE depending upon whether your robot
  181.                    is equipped with a repair kit.
  182.  
  183.   HaveShield -- returns TRUE or FALSE depending upon whether your robot is
  184.                 equipped with a shield.
  185.  
  186.   Heavy -- a pre-defined P-ROBOTS "constant" which is one of the values
  187.            returned by the "Armor" function.
  188.  
  189.   Large -- a pre-defined P-ROBOTS "constant" which is one of the values
  190.            returned by the "Engine" function.
  191.  
  192.   Light -- a pre-defined P-ROBOTS "constant" which is one of the values
  193.            returned by the "Armor" function.
  194.  
  195.   LimitedFuel -- returns TRUE or FALSE depending upon whether your current
  196.                  battle has fuel constraints or not.
  197.  
  198.   LowerCloak; -- causes your robot's cloak to be lowered.
  199.  
  200.   LowerShield; -- causes your robot's shield to be lowered.
  201.  
  202.   MakeRepairs; -- causes your robot to begin repairing itself.
  203.  
  204.   MaxRadarRange -- returns the maximum range (in meters) for your robot's
  205.                    radar.
  206.  
  207.   MaxSpeed -- returns the maximum speed for your robot.
  208.  
  209.   Medium -- a pre-defined P-ROBOTS "constant" which is one of the values
  210.             returned by the "Armor" function.
  211.  
  212.   Meters -- returns the cumulative number of meters that your robot has
  213.             traveled during the current battle.
  214.  
  215.   Normal -- a pre-defined P-ROBOTS "constant" which is one of the values
  216.             returned by the "Warheads" function.
  217.  
  218.   Nothing -- a pre-defined P-ROBOTS "constant" which is one of the values
  219.              returned by the "ObjectScanned" function.
  220.  
  221.   ObjectScanned -- returns the type of object that was found by the most
  222.                    recent "Scan" call (if any).  The result returned can
  223.                    have the "constant" values: Nothing, Ally, Enemy or
  224.                    Obstruction.
  225.  
  226.   Obstruction -- a pre-defined P-ROBOTS "constant" which is one of the
  227.                  values returned by the "ObjectScanned" function.
  228.  
  229.   PlaceBomb; -- causes your robot to "drop" or place an electronic bomb at
  230.                 the current location.
  231.  
  232.   Premium -- a pre-defined P-ROBOTS "constant" which is one of the values
  233.              returned by the "Warheads" function.
  234.  
  235.   RaiseCloak; -- causes your robot's cloak to be raised.
  236.  
  237.   RaiseShield; -- causes your robot's shield to be raised.
  238.  
  239.   Random(limit) -- returns a random integer in the range of zero to "limit".
  240.  
  241.   Scan(degree, resolution) -- returns the distance in meters to any other
  242.                               robot or obstruction that is within the
  243.                               "viewing" arc/angle of "degree" +/-
  244.                               "resolution".  If nothing is scanned then the
  245.                               function "Scan" returns a value of zero.
  246.  
  247.   ShieldRaised -- returns TRUE or FALSE depending upon whether your robot's
  248.                   shield is up or down.
  249.  
  250.   Standard -- a pre-defined P-ROBOTS "constant" which is one of the values
  251.               returned by the "Engine" function.
  252.  
  253.   StopRepairs; -- causes your robot to stop repairing itself.
  254.  
  255.   Time -- returns the current CPU cycle count.  This function can be used to
  256.           time various events, speeds, etc., within your robot program.
  257.  
  258.   Warheads -- returns the type of warheads with which your robot is equipped.
  259.               The result returned can have the "constant" values: Wimp,
  260.               Normal, or Premium.
  261.  
  262.   Wimp -- a pre-defined P-ROBOTS "constant" which is one of the values
  263.           returned by the "Warheads" function.
  264.  
  265.   Winner -- returns TRUE or FALSE depending upon your robot winning the
  266.             battle.
  267.  
  268.